Solved: How to change memory areas in CubeIDE? 您所在的位置:网站首页 cubeide 1150 Build Analyzer 不显示内容 有会解决的吗 Solved: How to change memory areas in CubeIDE?

Solved: How to change memory areas in CubeIDE?

2024-06-18 20:50| 来源: 网络整理| 查看: 265

Hi VMish,

I believe that by now you would have found a solution to your problem, but like me, there must be others too, who are seeking a solution. I am using both CubeIDE and Keil MDK. Keil has a GUI based solution to this problem to set the memory regions, but I didn't find one in CubeIDE, so I'm thinking there must be a plugin or something that helps in this matter.

Anyway, for now, my solution requires the user to simply modify the LinkerScript.ld file located in the project. LinkerScript.ld will be renamed however to reflect the used MCU, ex. STM32F030F4PX_FLASH.ld. In this file you have:

/* Memories definition */

MEMORY

{

 RAM  (xrw)  : ORIGIN = 0x20000000,  LENGTH = 4K

 FLASH  (rx)  : ORIGIN = 0x8000000,  LENGTH = 16K

}

Modify, save and build. That should do it.

I hope it helps,

OG.

View solution in original post



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有